package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 报名派号业务表
 *
 * @author zhiyuan
 * @since 2023-07-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_busi_enroll_order")
@Schema(name = "EduBusiEnrollOrder", title = "报名派号业务表", description = "报名派号业务表实体类")
public class EduBusiEnrollOrder extends Model<EduBusiEnrollOrder> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "busiEnrollOrderId", description = "主键")
    @TableId(value = "busi_enroll_order_id", type = IdType.INPUT)
    private Long busiEnrollOrderId;

    @Schema(name = "busiEnrollPreId", description = "预采集业务表主键")
    @TableField(value = "busi_enroll_pre_id")
    private Long busiEnrollPreId;

    @Schema(name = "studentEnrollPreId", description = "预采集结果表主键")
    @TableField(value = "student_enroll_pre_id")
    private String studentEnrollPreId;

    @Schema(name = "orderNum", description = "派号编号")
    @TableField(value = "order_num")
    private Long orderNum;

    @Schema(name = "orderYmd", description = "派号日期")
    @TableField(value = "order_ymd")
    private Date orderYmd;

    @Schema(name = "orderType", description = "派号类型 --数据字典配")
    @TableField(value = "order_type")
    private String orderType;

    @Schema(name = "orderInfo", description = "派号备注")
    @TableField(value = "order_info")
    private String orderInfo;

    @Schema(name = "idcard", description = "学生身份证")
    @TableField(value = "idcard")
    private String idcard;

    @Schema(name = "parentIdcard", description = "家长身份证")
    @TableField(value = "parent_idcard")
    private String parentIdcard;

    @Schema(name = "fullName", description = "学生姓名")
    @TableField(value = "full_name")
    private String fullName;

    @Schema(name = "submitterId", description = "提交人员userId")
    @TableField(value = "submitter_id")
    private String submitterId;

    @Schema(name = "submitterName", description = "提交人员姓名")
    @TableField(value = "submitter_name")
    private String submitterName;

    @Schema(name = "submitterIdcard", description = "提交人员证件号码")
    @TableField(value = "submitter_idcard")
    private String submitterIdcard;

    @Schema(name = "year", description = "年份")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "disposeStatus", description = "处理状态 0待处理，1进行中，2已完成，3无效")
    @TableField(value = "dispose_status")
    private String disposeStatus;

    @Schema(name = "createName", description = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", description = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Schema(name = "del", description = "逻辑删除标志")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Schema(name = "orderVersion", description = "派号编号版本号")
    @TableField(value = "order_version")
    private Long orderVersion;

    @Schema(name = "materials", description = "佐证材料")
    @TableField(value = "materials")
    private String materials;

    @Override
    public Serializable pkVal() {
        return this.busiEnrollOrderId;
    }
}
